<?php
/* @var $this CountAdminController */
/* @var $dataProvider CActiveDataProvider */

$this->breadcrumbs=array(
	'Count Admins',
);
$this->menu=array(
    array('label'=>'统计', 'url'=>array('admin')),
    array('label'=>'最近30天', 'url'=>array('countDay')),
    array('label'=>'最近12个月', 'url'=>array('countYear')),
);

?>
<link rel='stylesheet' type='text/css' href='<?php echo Yii::app()->request->baseUrl; ?>/css/fullcalendar.css' />
<script type='text/javascript' src='<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.js'></script>
<script type='text/javascript' src='<?php echo Yii::app()->request->baseUrl; ?>/js/ui.core.js'></script>
<script type='text/javascript' src='<?php echo Yii::app()->request->baseUrl; ?>/js/ui.draggable.js'></script>
<script type='text/javascript' src='<?php echo Yii::app()->request->baseUrl; ?>/js/fullcalendar.js'></script>

<script type='text/javascript'>

    $(document).ready(function() {

        $('#calendar').fullCalendar({ 
            events: "<?php echo Yii::app()->createUrl('countAdmin/json_admin');?>" ,
            loading: function(bool) {
                if (bool) $('#loading').show();
                 else $('#loading').hide();
            }
        });
        
    });

</script>
<div id='loading' style='display:none'><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/admin/loading.gif"/>加载中...</div>
<div id='calendar'></div>